Now I try to use my ActiveX in C#, with my ActiveX control You can:
Method/Property
Explanation
Example
ComboItemsList (ComboCol, ComboList)
Set the List of items [ComboList] to the Combo box at the Column #ComboCol.
int c = 4;string strList= "Apple/Banana/Orange/Melon/Peach/Strawberry";MKGrid1.ComboItemsList(ref c, ref strList);
DeleteRecord
Deletes the current Record from database file.
MKGrid1.DeleteRecord;
InsertRow
Insert new Row to unbound Grid.
MKGrid1.InsertRow;
set_ColumnHidden(number,ColType)
Returns or sets a value indicating whether a specified column is hide.
MKGrid1.set_ColumnHidden(4, false);
set_ColumnType (number, ColType)
Returns or sets the type of control to show in a column.
MKGrid1.set_ColumnType (4, KGrid.grdColumnType.colCheckBox)
LoadGridByQuery(MyDataFile, GridSQL)
Populate the grid with query [GridSQL] from the file [MyDataFile].
string MyDataFile = Application.StartupPath + @"\DataFiles\" + "test.mdb";string MySql = "SELECT * FROM Customers"MKGrid1.LoadGridByQuery(ref MyDataFile, ref MyTable);
LoadGridFromTable(mdbDataFile, mdbTable)
Bind the Grid to the Table [mdbTable] from the database file [mdbDataFile].
string MyDataFile = Application.StartupPath + @"\DataFiles\" + "test.mdb";string MyTable = "Customers";MKGrid1.LoadGridFromTable(ref MyDataFile, ref MyTable);
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: